// import { getExpenditure } from '@/api/platformExpend'
// 实现数据持久化，将缓存和vuex同步
const state = {
  expenditures: {}// 如果设置为null，在getters中引用userInfo的变量会引起报错和异常
}
const mutations = {
//   setExpenditures (expInfo) {
//     state.expenditures = expInfo// 响应式
//   }
}
const actions = {
//   async getExpenditures (context) {
//     const expInfo = await getExpenditure()
//     context.commit('setExpenditures', expInfo)
//     console.log(expInfo)
//   }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
